  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  }

  :root {
    --primary-green: #28a745;
    --primary-blue: #1e88e5;
    --primary-orange: #ff9800;
    --primary-red: #e53935;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #555;
    --text-light: #777;
    --chart-green: #66bb6a;
    --chart-blue: #42a5f5;
    --chart-red: #ef5350;
    --chart-orange: #ffa726;
    --shadow-light: 0 3px 12px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 6px 25px rgba(0, 0, 0, 0.1);
  }

  body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef7f8 100%);
    min-height: 100vh;
    padding: 20px;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* 顶部导航栏 */
  .header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
    border-radius: 0 0 15px 15px;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .logo-icon {
    color: var(--primary-green);
    font-size: 28px;
    margin-right: 10px;
  }

  .logo-text {
    font-weight: 800;
    font-size: 28px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
  }

  .logo-text span {
    color: var(--primary-green);
  }

  .nav-links {
    display: flex;
    gap: 30px;
  }

  .nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
  }

  .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.08);
    transform: translateY(-3px);
    color: var(--primary-green);
  }

  .nav-link.active {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  /* 首页内容 */
  .home-page {
    padding-top: 30px;
  }

  .hero {
    margin-top: 30px;
    padding: 50px 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #ffffff 50%, #f1f9ff 100%);
  }

  .hero-content {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 500px;
  }

  .hero-text {
    width: 60%;
    padding-right: 40px;
    z-index: 2;
  }

  .hero-title {
    font-size: 50px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .hero-title span {
    color: var(--primary-green);
    display: block;
    margin-top: 10px;
    background: linear-gradient(45deg, #28a745, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-description {
    font-size: 22px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 80%;
  }

  /* 数据统计区域 */
  .stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
  }

  .stat-card {
    flex: 1;
    min-width: 200px;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border-top: 4px solid var(--primary-green);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.15);
  }

  .stat-icon {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-green);
  }

  .stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 5px;
    font-family: 'Quicksand', sans-serif;
  }

  .stat-title {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 5px;
    font-weight: 500;
  }

  .stat-unit {
    font-size: 18px;
    color: var(--text-light);
  }

  /* 老年夫妇照片区域 */
  .elder-photo {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 90%;
    background-color: #eee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
  }

  .elder-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 30px;
  }

  .elder-photo-placeholder i {
    font-size: 90px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
  }

  .elder-photo-placeholder h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* 底部标语 */
  .footer {
    text-align: center;
    padding: 70px 0 50px;
    margin-top: 40px;
  }

  .platform-slogan {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-green);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    background: linear-gradient(45deg, #28a745, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .slogan-sub {
    font-size: 24px;
    color: var(--text-medium);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
  }

  /* 健康数据页面样式 */
  .health-data-page {
    background: linear-gradient(to bottom, #e8f5e9, #f1f8e9);
    min-height: 100vh;
    padding: 100px 0 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
  }

  .health-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }

  .health-header {
    background: linear-gradient(90deg, var(--primary-green), #2ecc71);
    color: white;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .health-title {
    font-size: 36px;
    font-weight: 700;
  }

  .back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
  }

  .health-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }

  .personal-info {
    background: #f8f9ff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
  }

  .info-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 0 10px;
  }

  .avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
  }

  .avatar-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, #e0f7fa, #b2ebf2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 50px;
    color: #0097a7;
    border: 4px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .user-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-align: center;
  }

  .user-age {
    font-size: 22px;
    color: var(--text-medium);
    text-align: center;
  }

  .info-section {
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
  }

  .info-section:last-child {
    border-bottom: none;
  }

  .section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(40, 167, 69, 0.3);
  }

  .info-item {
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
    font-size: 18px;
  }

  .info-item i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-green);
    font-size: 22px;
  }

  .charts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .chart {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .chart:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .chart-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
  }

  .chart-value {
    font-weight: 700;
    font-size: 24px;
  }

  .chart-content {
    height: 320px;
    position: relative;
  }

  /* 精准重建的图表样式 */
  .chart-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .chart-grid {
    flex: 1;
    position: relative;
    border-left: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
  }

  .y-axis {
    position: absolute;
    left: -45px;
    top: 0;
    bottom: 0;
    width: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 5px;
    font-size: 16px;
    color: #666;
  }

  .y-label {
    text-align: right;
    transform: translateY(50%);
  }

  .x-axis {
    display: flex;
    justify-content: space-between;
    padding: 5px 0 0 45px;
    height: 35px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 16px;
  }

  .x-label {
    text-align: center;
    flex: 1;
  }

  .line-path {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.5s;
  }

  .data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
  }

  .point-label {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
    z-index: 20;
    white-space: nowrap;
    transition: all 0.3s;
  }

  /* 网格线 */
  .grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
  }

  /* 图表颜色样式 */
  .trend-chart .line-path {
    stroke: var(--chart-orange);
    stroke-width: 4;
  }

  .trend-chart .data-point {
    background-color: var(--chart-orange);
  }

  .trend-chart .point-label {
    color: var(--chart-orange);
  }

  .trend-chart .chart-value {
    color: var(--chart-orange);
  }

  .oxygen-chart .line-path {
    stroke: var(--chart-blue);
    stroke-width: 4;
  }

  .oxygen-chart .data-point {
    background-color: var(--chart-blue);
  }

  .oxygen-chart .point-label {
    color: var(--chart-blue);
  }

  .oxygen-chart .chart-value {
    color: var(--chart-blue);
  }

  .sugar-chart .line-path {
    stroke: var(--chart-red);
    stroke-width: 4;
  }

  .sugar-chart .data-point {
    background-color: var(--chart-red);
  }

  .sugar-chart .point-label {
    color: var(--chart-red);
  }

  .sugar-chart .chart-value {
    color: var(--chart-red);
  }

  /* 响应式设计 */
  @media (max-width: 992px) {
    .hero-content {
      flex-direction: column;
      height: auto;
    }

    .hero-text,
    .elder-photo {
      width: 100%;
      position: static;
    }

    .elder-photo {
      height: 500px;
      margin-top: 40px;
      transform: none;
      top: auto;
      right: auto;
      width: 100%;
    }

    .stats-container {
      flex-direction: column;
      gap: 25px;
    }

    .health-content {
      grid-template-columns: 1fr;
    }

    .personal-info {
      padding: 30px;
      margin-bottom: 30px;
    }

    .chart {
      padding: 25px;
    }

    .hero-title {
      font-size: 36px;
    }

    .health-title {
      font-size: 28px;
    }
  }

  @media (max-width: 768px) {
    .nav-container {
      flex-direction: column;
      gap: 15px;
    }

    .nav-links {
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
    }

    .hero {
      padding: 30px;
    }

    .hero-description {
      max-width: 100%;
      font-size: 18px;
    }

    .platform-slogan {
      font-size: 32px;
    }

    .slogan-sub {
      font-size: 20px;
    }

    .chart-content {
      height: 280px;
    }
  }

  /* 动画 */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-in {
    animation: fadeIn 0.8s ease;
  }

  /* 图表浮动效果 */
  .chart:hover .point-label {
    transform: translate(-50%, -10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }